//
//  MSDKIOT.h
//  MSDKIOT
//
//  Created by lsqMacbook Pro        on 2025/2/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MSDKIOT : NSObject

+ (MSDKIOT *)shareInstance;

/// 登录接口
/// @param clientId 客户端id
/// @param grantType 授权类型
/// @param uuid 账号
/// @param success 成功
/// @param failure 失败
- (void)login:(NSString *)clientId grantType:(NSString *)grantType uuid:(NSString *)uuid success:(nullable void (^)(NSString *token))success failure:(nullable void (^)(NSError *error))failure;

/// 绑定设备接口
/// @param serialInfo   序列号
/// @param deviceName   设备名
/// @param vin   vin码
/// @param token   tk码
/// @param block   结果
- (void)bindDevice:(NSString *)serialInfo deviceName:(NSString *)deviceName vin:(NSString *)vin token:(NSString *)token callback:(void (^)(BOOL isSucceed, NSString *msg, NSInteger code))block;

/// 解绑设备
/// @param serialInfo   序列号
/// @param token   tk码
/// @param block   结果
- (void)unBindDevice:(NSString *)serialInfo token:(NSString *)token callback:(void (^)(BOOL isSucceed, NSString *msg, NSInteger code))block;


@end

NS_ASSUME_NONNULL_END
